home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
MRAC
/
Lengths
/
Modify
/
l-add-up-range-section
< prev
next >
Wrap
Lisp/Scheme
|
1998-08-11
|
593b
|
20 lines
l-add-up-range-section range section pattern
0-based
This function enables the adding up of selected note-lengths in a multiple list by <range>. The individual lists of a multiple list are regarded as constituting a <section>.
(setq len (qlength '((20-11011) (24-1131) (16-13) (20-14))))
(setq range
(p-select
'(0 2 3)
(pick-rnd1 .56 :content 2
(g-integer 0 (l-count :all :content len)))))
=> ((0 4) (2 0) (1 0))
internally to: ((0 4) (0 2) (0 1))
(l-add-up-range-section range '(0 2 3) len)
=> ((1/10 1/20) (1/24 1/24 1/8 1/24) (1/4) (1/20 1/5))